<?php
/**
* This is the config file to be used by developers (not the production/demo server).  Extends the main.php config file.
* See http://www.yiiframework.com/doc/cookbook/32/
*/
return CMap::mergeArray(
	require(dirname(__FILE__).'/main.php'), 
	array(
		'name'=>'Play My Yii v1.0 - DEVELOPMENT',
		// 'defaultController'=>'test',
		// 'theme'=>'plus',
		'preload'=>array('log'),
		// autoloading model and component classes
		'import'=>array(
			'application.extensions.dBug',
		),
		'modules' => array(
			'gii'=>array(
				'class'=>'system.gii.GiiModule',
				'password'=>'123',
				'ipFilters'=>array('127.0.0.1','::1'),
				// 'newFileMode'=>0666,
				// 'newDirMode'=>0777,
			),
		),
		'components'=>array(
			'db'=>array(
				'connectionString' => 'mysql:host=localhost;dbname=playmyii',
				'tablePrefix' => 'pmi_',
				'emulatePrepare' => true,
				'username' => 'ding',
				'password' => 'ding',
				'charset' => 'utf8',
				//do not cache db structure
				'schemaCachingDuration'=>false,
				//log query param
				'enableParamLogging'=>true,
				// 'enableParamLogging'=>true,
			),
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					array(
						'class'=>'CWebLogRoute',
						'levels'=>'error, warning, trace',
						// 'categories'=>'system.db.CDbCommand',
						'showInFireBug'=>true,
					),
				),
			),
		),
	)
);